<?php
$v_af_id = 0;
if(isset($_REQUEST['hdn_af_id'])){
	$v_af_id = $_REQUEST['hdn_af_id'];
}
if(_is_sqlserver()){//CSDL MSSQL 
	// Lay cac thuoc tinh cua TTHC
	$sql = "Exec Onegate_AFGetSingle " . $v_af_id ;
	$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
	$rs_single_af = $ado_conn->GetRow($sql); 
	// Lay cac file dinh kem cua TTHC
	$cmd = @mssql_init("Onegate_AFFileGetAll",$conn);
	@mssql_bind($cmd,"@p_af_id",$v_af_id,SQLINT4);
	$result = @mssql_execute($cmd);
	$rs_single_af_file = _get_row_to_array($result);
}?>